package com.feng.chat.service;

import com.feng.chat.dto.Result;
import com.feng.chat.entity.ArticleAnnex;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.chat.vo.AnnexUploadVO;

import javax.servlet.http.HttpServletResponse;
import java.net.MalformedURLException;

/**
 * <p>
 * 笔记附件信息表 服务类
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */
public interface IArticleAnnexService extends IService<ArticleAnnex> {

    //上传笔记附件
    public Result annexUpload(Integer uid, AnnexUploadVO annexUploadVO);

    //附件下载
    public void annexDownload(HttpServletResponse response, Integer annex_id) throws MalformedURLException, Exception;

    //删除附件
    public Result annexDelete(Integer annex_id);

    //笔记附件回收站列表
    public Result recoverList(Integer uid);

    //恢复笔记附件
    public Result annexRecover(Integer annex_id);

    //永久刪除笔记附件
    public Result annexForeverDelete(Integer annex_id);
}
